package com.kfyang.manualgear.struct;

/**
 * 排序信息
 */
public class Sort {
    private String field;
    private Order order;

    public Sort(String field, Order order) {
        this.field = field;
        this.order = order;
    }

    public void setField(String field) {
        this.field = field;
        this.order = Order.ASC;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public String getField() {
        return field;
    }

    public Order getOrder() {
        return order;
    }

    public enum Order {
        ASC, DESC
    }
}
